package com.wingsboat.graphvis.domain;

import com.wingsboat.common.core.annotation.Excel;
import com.wingsboat.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 节点信息对象 gv_node
 * 
 * @author wangzhong
 * @date 2024-04-20
 */
public class GvNode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 节点id */
    private Integer nodeId;

    /** 节点类型 */
    @Excel(name = "节点类型")
    private String type;

    /** 节点名称 */
    @Excel(name = "节点名称")
    private String label;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String color;

    public void setNodeId(Integer nodeId) 
    {
        this.nodeId = nodeId;
    }

    public Integer getNodeId() 
    {
        return nodeId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }
    public void setColor(String color) 
    {
        this.color = color;
    }

    public String getColor() 
    {
        return color;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("nodeId", getNodeId())
            .append("type", getType())
            .append("label", getLabel())
            .append("color", getColor())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
